# +----------------------------------------------------------------------
# | Pink [ A modern python web framework ]
# +----------------------------------------------------------------------
# | Copyright (c) 2023 http:#unnnnn.com All rights reserved.
# +----------------------------------------------------------------------
# | Author: chenjianhua <unnnnn@foxmail.com>
# +----------------------------------------------------------------------

from ..helpers.hashid import hashid
from ...providers import Provider


class HashIDProvider(Provider):
    def __init__(self, application):
        self.application = application

    def register(self):
        self.application.make("view").share({"hashid": hashid})

    def boot(self):
        pass
